package com.solution.model;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SchdJobDetails
 */
@Entity
@Table(name="SCHD_JOB_DETAILS"
	, schema="public"
    , uniqueConstraints = @UniqueConstraint(columnNames={"Job_Name", "Job_Group"}) 
)
public class SchdJobDetails extends AbstractPO
 {

	
	private static final long serialVersionUID = 1L;
	
    private Long id;
    private String jobName;
    private String jobGroup;
    private String description;
    private String jobClassName;
    private Boolean isDurable;
    private Boolean isVolatile;
    private Boolean isStateful;
    private Boolean requestsRecovery;
    private byte[] jobData;
 
    @SequenceGenerator(name="generator", sequenceName="schd_job_details_seq")@Id @GeneratedValue(strategy=SEQUENCE, generator="generator")
    
    @Column(name="Job_Detail_ID", unique=true, nullable=false, precision=10, scale=0)
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    @Column(name="Job_Name", nullable=false, length=80)
    public String getJobName() {
        return this.jobName;
    }
    
    public void setJobName(String jobName) {
        this.jobName = jobName;
    }
    
    @Column(name="Job_Group", nullable=false, length=80)
    public String getJobGroup() {
        return this.jobGroup;
    }
    
    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }
    
    @Column(name="Description", length=150)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="Job_Class_Name", nullable=false, length=128)
    public String getJobClassName() {
        return this.jobClassName;
    }
    
    public void setJobClassName(String jobClassName) {
        this.jobClassName = jobClassName;
    }
    
    @Column(name="Is_Durable", nullable=false)
    public Boolean getIsDurable() {
        return this.isDurable;
    }
    
    public void setIsDurable(Boolean isDurable) {
        this.isDurable = isDurable;
    }
    
    @Column(name="Is_Volatile", nullable=false)
    public Boolean getIsVolatile() {
        return this.isVolatile;
    }
    
    public void setIsVolatile(Boolean isVolatile) {
        this.isVolatile = isVolatile;
    }
    
    @Column(name="Is_Stateful", nullable=false)
    public Boolean getIsStateful() {
        return this.isStateful;
    }
    
    public void setIsStateful(Boolean isStateful) {
        this.isStateful = isStateful;
    }
    
    @Column(name="Requests_Recovery", nullable=false)
    public Boolean getRequestsRecovery() {
        return this.requestsRecovery;
    }
    
    public void setRequestsRecovery(Boolean requestsRecovery) {
        this.requestsRecovery = requestsRecovery;
    }
    
    @Column(name="Job_Data")
    public byte[] getJobData() {
        return this.jobData;
    }
    
    public void setJobData(byte[] jobData) {
        this.jobData = jobData;
    }




}


